/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package am.aua.renju.web.filldata;

import java.io.IOException;
import java.util.HashMap;
import java.util.Map;
import javax.servlet.ServletException;

/**
 *
 * @author Ara Yeritsian
 */
public class CreateGame {
    
    public static Data load()
            throws ServletException, IOException {
        Map root = new HashMap();
        root.put("error", "");
        return new Data("createGame.html", root);
    }

    public static Data loadGameDuplicationError()
            throws ServletException, IOException {
        Map root = new HashMap();
        root.put("error", "You have already created a game with this parameters.");
        return new Data("createGame.html", root);
    }
}
